package repository

import (
	"context"
	"zxstudy.com/domain/entity"
)

type UserRepository interface {
	Register(ctx context.Context, user *entity.User) (*entity.User, error)
	Update(ctx context.Context, user *entity.User) (*entity.User, error)
	Get(ctx context.Context, id int) (*entity.User, error)
	Users(ctx context.Context) ([]*entity.User, error)
}